{% set clazz = "checkout" %}
{% set title = "店铺收款" %}
{% extends './modules/common/templates/main.html' %}
{% block style %}
  <link rel="stylesheet" type="text/css" href="{{ '/static/css/store.css'|version }}" />
{% endblock %}
{% block content %}
  {% if !nested %}
    <header class="bar bar-header">
      {{ macro.back() }}
      <h1 class="title">{{ title }}</h1>
    </header>
  {% endif %}
  <section>
    <div class="list">
      {% if count > 1 %}
        <div class="item-divider">选择收款店铺</div>
        <a class="item" href="/store/stores/{{providerId}}">
          <span class="text">
            {{entity.name}}
            <div class="brief">地址：{{entity.address}}</div>
          </span>
          <i class="icon">&#xe61a;</i>
        </a>
      {% else %}
        <a class="item" href="javascript:;">
          <span class="text">
            {{entity.name}}
            <div class="brief">地址：{{entity.address}}</div>
          </span>
        </a>
      {% endif %}
    </div>
    <form class="pay-form" method="post" action="/store/paycode">
      <div class="list">
        <div class="item-divider">输入收款金额</div>
        <label class="item item-input">
          <span class="control">
            <input type="hidden" name="providerId" value="{{providerId}}">
            <input type="hidden" name="shopId" value="{{entity.id}}">
            <input type="text" autocomplete="off" name="price" placeholder="请输入收款金额">
          </span>
        </label>
      </div>
      <div class="hspace vspace" ui-mode="20px">
        <button class="button primary submit-btn">确定</button>
      </div>
    </form>
  </section>
{% endblock %}
{% block script %}
  {% parent %}
  <script src="{{ '/static/js/store.js'|version }}"></script>
{% endblock %}